﻿#ifndef DISKUSE_H
#define DISKUSE_H

#include <QBaseEntity>

class DiskUse : public QBaseEntity
{
    Q_OBJECT
    // 定义属性
    Q_PROPERTY(QString drivePath READ getDrivePath WRITE setDrivePath)
    Q_PROPERTY(QString fileSystem READ getFileSystem WRITE setFileSystem)
    Q_PROPERTY(QString driveType READ getDriveType WRITE setDriveType)
    Q_PROPERTY(uint64_t usageSize READ getUsageSize WRITE setUsageSize)
    Q_PROPERTY(uint64_t totalsize READ getTotalsize WRITE setTotalsize)
public:
    explicit DiskUse(QObject *parent = nullptr);

    QString getDrivePath() const;
    void setDrivePath(const QString &value);

    QString getFileSystem() const;
    void setFileSystem(const QString &value);

    QString getDriveType() const;
    void setDriveType(const QString &value);

    uint64_t getUsageSize() const;
    void setUsageSize(const uint64_t &value);

    uint64_t getTotalsize() const;
    void setTotalsize(const uint64_t &value);

private:
    QString drivePath; /**< 盘符路径*/
    QString fileSystem; /**< 文件系统*/
    QString driveType; /**< 盘符类型*/
    uint64_t usageSize; /**< 使用大小*/
    uint64_t totalsize; /**< 总大小*/
};

#endif // DISKUSE_H
